<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
     <%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.util.ArrayList, edu.student.models.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>User Information</title>
</head>
<body>
<h1 align="center">My Profile</h1>
<s:form action="editProfile">

<table align="center">
<tr><b><h1 align="center"></h1></b></tr>
<tr>
<%-- <td><img src="./images/<s:property value = "friend.image" />" alt="image text" width="150" height="175"/></td> --%>
<td><table id="text">
   <td><s:textfield label = "Name "  value="%{friend.username}"  size="20" readonly="true" /></td>
    <td><s:textfield label = "Roll Number "  value="%{friend.rollNor}"  size="20" readonly="true" /></td>
    <td><s:textfield label = "Email Id " value="%{friend.emailId}"  size="20" readonly="true" /></td>
    <td><s:textfield label = "Date of Birth " value="%{friend.dob}"  size="20" readonly="true" /></td></table>
    <table id="text">
    <td>Interests: &nbsp; &nbsp;<s:iterator value="friend.Interests"> &nbsp; <s:property value = "interestName" /></s:iterator></td>
   <s:submit name = "commandButton" method="execute" id="mysubmit" value="Edit Profile" onClick="return doValidation()"
 align="center" />
 
    </tr>
</table></td>
</table>    

</s:form>

</body>
</html>